home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / util / thread.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  337 b   |  30 lines

  1. #ifndef _THREAD_H_
  2. #define _THREAD_H_
  3.  
  4. #include <objc/Object.h>
  5.  
  6. @interface Thread : Object
  7. {
  8.   int threadID;
  9. }
  10.  
  11. - init;
  12. - initWithStackSize: (int) stackSize;
  13.  
  14. - run;
  15.  
  16. - (int) threadID;
  17.  
  18. - wait;
  19. - (BOOL) hasFinished;
  20.  
  21. - suspend;
  22. - resume;
  23. - terminate;
  24.  
  25. @end
  26.  
  27. void initThreadObject (id objectHandle);
  28.  
  29. #endif
  30.